from NetTools.FileRequester import FileRequester
from NetTools.FileRequestListener import FileRequestListener
from NetTools.FileReceiver import FileReceiver
from Config import conf
from threading import Thread
from SyncLogs.LogDealer import LogDealer
import time

b = Thread(target=lambda:FileReceiver(conf.ip,conf.file_port,"./shareTest"))
b.start()
a = Thread(target=lambda:FileRequestListener())
a.start()
time.sleep(1)
# c = LogDealer(conf.sync_log_dir)
# c.Deal()
# c.Deal()
while True:
    pass
